package com.hui.entity.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 评论表(StoreProductReply)表实体类
 *
 * @author hui
 * @since 2022-07-17 15:47:56
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("store_product_reply")
public class StoreProductReply extends BaseDomain{
    //评论ID
    private Long id;
    //用户ID
    private Long uid;
    //订单ID
    private Long oid;
    //唯一id
    @TableField("`unique`")
    private String unique;
    //产品id
    private Long productId;
    //某种商品类型(普通商品、秒杀商品）
    private String replyType;
    //商品分数
    private Integer productScore;
    //服务分数
    private Integer serviceScore;
    //评论内容
    private String comment;
    //评论图片
    private String pics;

    //管理员回复内容
    private String merchantReplyContent;
    //管理员回复时间
    private Date merchantReplyTime;

    //0未回复1已回复
    private Integer isReply;

    @TableField(
            exist = false
    )
    private StoreProduct storeProduct; //商品数据
    @TableField(
            exist = false
    )
    private ShopUser user; //用户数据
}

